// APP类
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:fstudy/src/presentation/pages/home/index.dart';
import 'package:gpt_markdown/gpt_markdown.dart';

class MyApp extends ConsumerWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context, WidgetRef ref) {
    return MaterialApp(
      title: 'Flutter Study',
      theme: ThemeData(
        useMaterial3: true,
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue),
        extensions: [
          GptMarkdownThemeData(
            brightness: Brightness.light,
            highlightColor: Colors.grey[400],
            h1: TextStyle(
              backgroundColor: null,
              inherit: true,
              color: Colors.black,
            ),
          ),
        ],
      ),
      home: HomePage(),
      debugShowCheckedModeBanner: true,
    );
  }
}
